package com.ruoyi.web.message.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息发送列对象 message_user
 *
 * @author 范书铭
 * @date 2024-10-11
 */
@ApiModel(value = "消息发送列", description = "")
@TableName(resultMap = "com.ruoyi.web.message.mapper.MessageUserMapper.MessageUserResult")
@Data
@EqualsAndHashCode(callSuper = true)
public class MessageUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /** 消息ID */
    @ApiModelProperty(name = "消息ID", notes = "")
    @Excel(name = "消息ID")
    private Long messageId;

    /** 用户ID */
    @ApiModelProperty(name = "用户ID", notes = "")
    @Excel(name = "用户ID")
    private Long userId;

    /** 是否已读 */
    @ApiModelProperty(name = "是否已读", notes = "")
    @Excel(name = "是否已读")
    private Boolean isRead;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("messageId", getMessageId())
                .append("userId", getUserId())
                .append("isRead", getIsRead())
                .toString();
    }
}